namespace SimpleWebServices.Web.Mvc
{
    using System;
    using System.Globalization;
    using System.Web.Mvc;
    using System.Web.Routing;
    using Xunit;

    public sealed class IControlResourceFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(typeof(IControlResource).IsInterface);
        }

        [Fact]
        public void is_IController()
        {
            Assert.True(typeof(IController).IsAssignableFrom(typeof(IControlResource)));
        }

        [Fact]
        public void IControlResource_LanguageNegotiation()
        {
            try
            {
                ActionResult value = (new IControlResourceDummy() as IControlResource).LanguageNegotiation();
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IControlResource_ContentNegotiation_CultureInfo()
        {
            try
            {
                ActionResult value = (new IControlResourceDummy() as IControlResource).ContentNegotiation(null as CultureInfo);
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IController_Execute_RequestContext()
        {
            try
            {
                (new IControlResourceDummy() as IControlResource).Execute(null as RequestContext);
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }
    }
}